<!DOCTYPE html>
<html>
<head>
  <title>方形网格</title>
  <style>
    .square-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      width: 300px;
    }

    .square-grid li {
      background-color: lightgray;
      padding: 10px;
      text-align: center;
      height: 100px;
    }

    .square-grid li a {
      text-decoration: none;
      color: black;
    }
  </style>
</head>
<body>
  <ul class="square-grid">
    <li>
      <a href="http://www.baidu.com">
        <span class="iconify" data-icon="mdi:baidu"></span>
        <p>百度</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="iconify" data-icon="mdi:microsoft-bing"></span>
        <p>必应</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="iconify" data-icon="mdi:google"></span>
        <p>谷歌</p>
      </a>
    </li>
    <!-- 更多项 -->
  </ul>
</body>
</html>

